import { patch, get, post, put } from '@/http'

// 编辑个人资料
export const setUserInfor = params => patch('/music/edit-info', params)
// 修改账号密码
export const modifyPassword = params => patch('/music/modify-password', params)

// 主页
// 获取歌单列表 和获取歌单详情（通过编号查一条）
export const getSonglists = params => get('/manage/songlist-list', params)
// 查询轮播图列表
export const getCarousels = () => get('/manage/carousel')


// 详情页
// 获取歌手详情
export const getSongerDetail = params => get('/manage/carousel', params)


// 歌手查询
export const getSongerList = params => get('/manage/songer-list', params)

// 分页获取歌曲列表
export const getSongsList = params => get('/manage/song-list', params)

// 搜索
export const searchList = params => get('/manage/search', params)

// 发表评论
export const publishComment = params => post('/common/publish-comment', params)

// 点赞
export const addLike = commentNo => put(`/music/like-comment/${commentNo}`)

// 查询评论
export const getCommentList = modeNo => get(`/music/comment/${modeNo}`)